package com.study.opensource.spring.profile.service.impl;

import com.study.opensource.spring.profile.service.PrintService;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

import java.util.stream.Stream;

/**
 * @author 许棒棒
 * @className com.study.study.opensource.spring.profile.service.impl.JDK8Print
 * @description TODO 类描述
 * @date 2021/04/17 23:10:15
 */
@Service
@Profile("jdk8")
public class JDK8PrintServiceImpl implements PrintService {
    @Override
    public void print(String... message) {
        System.out.println("jdk8");
        Stream.of(message).forEach(System.out::println);
    }
}
